package com.hexu.event.service;

import com.hexu.event.dao.AdministratorDao;
import com.hexu.event.entity.Administrator;
import com.hexu.event.entity.Attractions;

import java.util.List;


public class AdministratorService {
    //创建Dao层对象
    private AdministratorDao administratorDao = new AdministratorDao();

    public boolean addAttractions(Attractions attractions){
        return administratorDao.addAttractions(attractions);
    }


    public void deleteAttractions(String attractionsName){
        administratorDao.deleteAttractions(attractionsName);
    }


    public boolean updateAttractions(Attractions attractions){
        return  administratorDao.updateAttractions(attractions);
    }

    //返回所有管理员手机号码
    public List<Administrator> getAdministratorPhoneNumber(){
        return administratorDao.getAdministratorPhoneNumber();
    }

    //返管理员数量
    public int administratorNumber(){
        return administratorDao.administratorNumber();
    }
}
